<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			.qi {
				border: 1px solid black;
			}
		</style>
	</head>

	<body>
		<script type="text/javascript">
			//左侧直角三角形
			for(var i = 1; i <= 6; i++) {
				for(var k = 1; k <= i; k++) {
					document.write("+")
				}
				document.write("<br />")
			}
			for(var i = 6; i >= 1; i--) {
				for(var k = 1; k <= i; k++) {
					document.write("+")
				}
				document.write("<br />")
			}

			//			右侧直角三角形
			document.write("<table>")
			for(var i = 0; i < 6; i++) {
				document.write("<tr>")
				for(var k = 1; k < 6 - i; k++) {
					document.write("<td></td>")
				}
				for(var x = 0; x <= i; x++) {
					document.write("<td>+</td>")
				}
				document.write("</tr>")
			}
			document.write("</table>")

			document.write("<table>")
			for(var i = 5; i >= 0; i--) {
				document.write("<tr>")
				for(var k = 1; k < 6 - i; k++) {
					document.write("<td></td>")
				}
				for(var x = 0; x <= i; x++) {
					document.write("<td>+</td>")
				}
				document.write("</tr>")
			}
			document.write("</table>")
			//			九九乘法表
			document.write("<table>");
			for(var i = 1; i <= 9; i++) {
				document.write("<tr>");
				for(var n = 1; n <= i; n++) {
					document.write("<td class=qi>" + n + "*" + i + "=" + (i * n) + "</td>")
				}
				document.write("</tr>");
			}
			document.write("</table>");
			
			document.write("<table>");
			for(var i = 9; i >= 1; i--) {
				document.write("<tr>");
				for(var n = 1; n <= i; n++) {
					document.write("<td class=qi>" + n + "*" + i + "=" + (i * n) + "</td>")
				}
				document.write("</tr>");
			}
			document.write("</table>");
			document.write("<table>")
         for (var i = 1; i <=9 ; i++) {
         	document.write("<tr>")
         	for (var a = 1; a <=i ; a++) {
         		document.write("<td></td>")
         	}
         	for (var b = 9; b >=i ; b--) {
         		document.write("<td>"+b+"*"+i+"="+b*i+"</td>")
         		
         	}
         	document.write("</tr>")
         
         }
document.write("</table>")

//等腰
			document.write("<table>")
			for(var i = 0; i < 15; i += 2) {
				document.write("<tr>")
				for(var k = 1; k < 15 - i / 2; k++) {
					document.write("<td></td>")
				}
				for(var x = 0; x <= i; x++) {
					document.write("<td>+</td>")
				}
				document.write("</tr>")
			}
			document.write("</table>")

			document.write("<table>")
			for(var i = 14; i >= 0; i -= 2) {
				document.write("<tr>")
				for(var k = 0; k < 14 - i / 2; k++) {
					document.write("<td></td>")
				}
				for(var x = 0; x <= i; x++) {
					document.write("<td>+</td>")
				}
				document.write("</tr>")
			}
			document.write("</table>")
		
//四边形
for(var t = 1; t <= 10; t++) {
				for(var h = 1; h <= t; h++) {
					document.write("&nbsp;")
				}


				for(var x = 1; x <= 10; x++) {
					
						document.write("*")
					
				}
				document.write("<br/>")
			}
			
			
		</script>
	</body>

</html>